//
// Created by root on 6/22/17.
//

#ifndef FUNNY_DIALOG_H
#define FUNNY_DIALOG_H

#include <gtk/gtk.h>

#include "editor.h"
#include "filebuffer.h"

void err_dialog (const gchar *errmsg);
void font_select_dialog (GtkWidget *widget, FunnyWindow *app);

void buffer_file_insert_dialog (FunnyWindow *app, gchar *filename);
void buffer_file_open_dialog (FunnyWindow *app, gchar *filename);
/* Removed until upstream bug fixed
 * see: https://bugzilla.gnome.org/show_bug.cgi?id=729800 and
 * https://bugzilla.gnome.org/show_bug.cgi?id=779605
 */
/*
void file_open_recent_dlg (FunnyWindow *app);
*/
void dialog_info (const gchar *msg, const gchar *title);
gboolean dialog_yes_no_msg (const gchar *msg, const gchar *title, gboolean default_return);
gboolean buffer_prompt_on_mod (FunnyWindow *app);

gchar *get_open_filename (FunnyWindow *app);
gchar *get_save_filename (FunnyWindow *app);


#endif //FUNNY_DIALOG_H
